package card;

public class MagicCard extends Card{
	
	private MagicCard[] magicCardArr;
	private String description;
	
	public MagicCard(){
		loadData();
	}
	
	public MagicCard(int magicID, String cardName, String description){
		this.cardId = magicID;
		this.name = cardName;
		this.description = description;
	}
	
	@Override
	public Card[] loadData() {
		magicCardArr = new MagicCard[3];
		/**Magic card info
		1. escapeHospital
		2. FinishByOthers
		3. ProtectedOwnSEValue*/
		magicCardArr[0] = new MagicCard(1, "escapeHospital", "You can escape Hospital");
		magicCardArr[1] = new MagicCard(2, "FinshByOthers", "You can choose other player to finish this task");
		magicCardArr[2] = new MagicCard(3, "SEValue", "Your SE value can remain unchange 1 turn");
		
		return magicCardArr;
	}
	
	public String getDetail(int id){
		return magicCardArr[id].name + ", " + magicCardArr[id].description;
	}
	
	public String getName(int id){
		return magicCardArr[id].name;
	}
}
